package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.javaBean.FriendsEFBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\6 0006.
 */
class FriendsEfModule {
    interface onRespListener{
        fun showLoading()
        fun onResp(friendsEFBean: FriendsEFBean)
    }

    fun getFriendsEf(params: HttpParams,listener: onRespListener){
        UrlApis.getFriendsEf(params)
                .doOnSubscribe {
                    listener.showLoading()
                }
                .subscribe {
                    data->
                    listener.onResp(data)
                }
    }
}